using System;
using System.IO;
 
using System.Diagnostics;
using System.Net;

using System.Text;
 
using CStock;

namespace CStock
{
	/// <summary>
	/// Summary description for WebFile.
	/// </summary>
	public class WebFile
	{
		
		public WebFile()
		{
			
		}
		public static void GetFile(string webFile, string localFile)
		{
			WebClient Client = new WebClient ();
			//"http://www.logisel.de/downloads/2003.08.04.zip"
			try
			{
				Client.DownloadFile(webFile,localFile);
			}
			catch(Exception exc)
			{
				//file not found
				Debug.Assert(false,"Error downloading file  " + webFile, exc.Message);
			}
			

		}
	
	}
}
